d = 0.8
n, m = map(float, input().split())
price = n - d * m
print(f"{price:.2f}")